package com.sm42.common.http;


/**
 * @author: xyz
 * @className: AxiosStatus
 * @description:
 * @date: 2022/7/14 15:35
 */
public enum AxiosStatus {
    OK(20000,"操作成功"),
    ERROR(50000,"操作失败");

    private int status;

    private String message;

    AxiosStatus(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public String toString() {
        return "AxiosStatus{" +
                "status=" + status +
                ", message='" + message + '\'' +
                '}';
    }
}
